package com.laikan.reader.core.bean;

import com.google.gson.annotations.SerializedName;
import com.laikan.reader.database.Book;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by Administrator on 2016/9/19.
 */
public class BookRecommendBean implements Serializable{
    @SerializedName ("error_no")
    private String error_no;
    @SerializedName ("error_msg")
    private String error_msg;
    @SerializedName ("data")
    private RecommendBook recommendBook;
    @SerializedName ("result")
    private String result;

    public String getError_no() {
        return error_no;
    }

    public void setError_no(String error_no) {
        this.error_no = error_no;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public RecommendBook getRecommendBook() {
        return recommendBook;
    }

    public void setRecommendBook(RecommendBook recommendBook) {
        this.recommendBook = recommendBook;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public class RecommendBook implements Serializable{
        @SerializedName("recommendedBooks")
        private ArrayList<Book> recommendBookList;

        @SerializedName("sorts")
        private String sortId;

        public ArrayList<Book> getRecommendBookList() {
            return recommendBookList;
        }

        public void setRecommendBookList(ArrayList<Book> recommendBookList) {
            this.recommendBookList = recommendBookList;
        }

        public String getSortId() {
            return sortId;
        }

        public void setSortId(String sortId) {
            this.sortId = sortId;
        }

        @Override
        public String toString() {
            return "RecommendBook{" +
                   "recommendBookList=" + recommendBookList +
                   ", sortId='" + sortId + '\'' +
                   '}';
        }
    }

    @Override
    public String toString() {
        return "BookRecommendBean{" +
               "error_no='" + error_no + '\'' +
               ", error_msg='" + error_msg + '\'' +
               ", recommendBook=" + recommendBook +
               ", result='" + result + '\'' +
               '}';
    }
}
